package tothreedesignmodel.observer;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author lzhphantom
 * @Description
 * @Date 创建于 17:22 2020/7/16
 * @Modified
 */
@Data
@AllArgsConstructor
public class Student implements Observer {
    private String name;

    @Override
    public void response() {
        System.out.println(getName()+"交卷了");
    }
}
